package com.codedancer.campus.client.api.user.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

@Data
@ApiModel("用户修改信息Ro")
public class SetBasicMessageRo {

    @ApiModelProperty("个性签名")
    @Size(min = 1, max = 50, message = "个性签名在1-50位之间")
    @NotEmpty(message = "个性签名在1-50位之间")
    private String signature;

    @ApiModelProperty("学校uuid")
    @NotEmpty(message = "请选择学校")
    private String schoolUuid;

    @ApiModelProperty("昵称")
    @Length(min = 2, max = 8, message = "昵称长度在2-8位")
    private String nickName;

    @ApiModelProperty("性别 1表示男 2表示女 3表示未知")
    @NotNull(message = "请选择性别")
    private Integer sex;

    @ApiModelProperty("生日")
    @NotEmpty(message = "请选择生日")
    private String birthday;

    @ApiModelProperty("头像")
    @URL(message = "头像地址错误")
    @NotEmpty(message = "请上传头像")
    private String avatar;
}

